package com.csun.cmny.provider.service;

import com.csun.cmny.base.dto.LoginAuthDto;
import com.csun.cmny.provider.pojo.OldmanFee;
import com.csun.cmny.provider.pojo.OldmanItem;
import com.csun.cmny.provider.pojo.OldmanNurse;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;
import java.util.Map;

public interface OldmanNurseService {
    /**
     * 插入护理记录
     */
   int  insert (OldmanNurse nurse);

    /**
     * 根据老人id查询护理记录
     * @param oldmanId
     * @return
     */
    List<OldmanNurse> selectByOldmanId(Map<String,Object> queryMap);
    List<OldmanNurse> selectByOldmanIdOrderByNurseDate(Map<String,Object> queryMap);

    OldmanNurse selectByOldmanIdAndDate(@Param("oldmanId")Integer oldmanId, @Param("currentDate")String currentDate);

    int updateByBillId(OldmanNurse nurse);

    int delOldNurseByOid(Integer oldmanId);

    /**
     * @description: TODO 获取最近一条护理记录
     * @param: oldmanId
     * @return:
     * @throws
     * @author huangxm
     * @date 2019/3/11 17:46
     */
    OldmanNurse selectRecentNurse(Integer oldmanId);
   /**
    * @description: TODO
    * @param:
    * @return:
    * @throws
    * @author huangxm
    * @date 2019/3/13 14:16
    */
    void saveOrUpdateFee(OldmanNurse nurse,LoginAuthDto loginAuthDto);

}
